                <div class="tableMain">
                	<form method="post" class="one">
                    <table class="right-table" width="99%"  border="0px" cellpadding="0" align="center" cellspacing="0" >
                    <tbody>
                    <tr>
                    <th>序号</th>
                    <th>名称</th>
                    <th>分类</th>
                    <th>品牌</th>
                    <th>价钱</th>
                    <th>图片</th>
                    <th>商品详情</th>
                    <th>库存</th>
                    <th>日期</th>
                    <th id="clearTDrightBorder">操作</th>
                    </tr>
                    <?php foreach ($arr as $key => $value):?>
                        <tr>
                        <td width="30px;"><input name="id[]" type="checkbox" value="<?php echo $value['id'];?>" /><?php echo $value['id'];?></td>
                        <td><?php echo $value['name'];?></td>
                        <td>
							<?php  echo $value['catename'];?>
						</td>
                        <td>
                            <?php echo $value['brand'];?>
                        </td>
                        <td><?php echo $value['price'];?></td>
                        <td style="text-align:center"><img src="<?php echo $value['image'];?>"  height="100px;"  /></td>
                        <td><?php echo $value['info'];?></td>
                        <td><?php echo $value['nums'];?></td>
                        <td><?php echo $value['time'];?></td>
                        <td id="clearTDrightBorder">
                        	<a href="<?php echo 'index.php?admin=1&c=goods&a=edit&id='.$value['id'];?>">修改</a>
                            <a href="<?php echo 'index.php?admin=1&c=goods&a=delete&id='.$value['id'];?>" onclick="return confirm('是否删除？','是','否');">删除</a>
                            　预览
                        </td>
                        </tr>
                        <?php endforeach;?>
                        
                    </tbody>
                    </table>
                    </form>
                </div>
                <form method="post" action="index.php?admin=1&c=goods&a=list">
                <div id="page">
                <ul>
				<?php echo $page;?>
                </ul>
           		</div>
                </form>
                <script>
                    $('#page a').live('click',function(){
                        var url=$(this).attr('href');
                        $.ajax({
                            type:"get",
                            url:url,
                            dataType:"json",
                            success:function(json){
                                //alert(json.arr[0].id);
                            var str='';
                                    str+='<tr>';
                                    str+='<th>序号</th>';
                                    str+='<th>名称</th>';
                                    str+='<th>分类</th>';
                                    str+='<th>品牌</th>';
                                    str+='<th>价钱</th>';
                                    str+='<th>图片</th>';
                                    str+='<th>商品详情</th>';
                                    str+='<th>库存</th>';
                                    str+='<th>日期</th>';
                                    str+='<th id="clearTDrightBorder">操作</th>';
                                    str+='</tr>';
                            for(var i=0;i<json.arr.length;i++){
                                str+='<tr>';
                                str+='<td width="30px;"><input name="id[]" type="checkbox" value="'+json.arr[i].id+'" />'+json.arr[i].id+'</td>';
                                str+='<td>'+json.arr[i].name+'</td>';
                                str+='<td>'+json.arr[i].catename+'</td>';
                                str+='<td>'+json.arr[i].brand+'</td>';
                                str+='<td>'+json.arr[i].price+'</td>';
                                str+='<td style="text-align:center"><img src="'+json.arr[i].image+'"  height="100px;"  /></td>';
                                str+='<td>'+json.arr[i].info+'</td>';
                                str+='<td>'+json.arr[i].nums+'</td>';
                                str+='<td>'+json.arr[i].time+'</td>';
                                str+='<td id="clearTDrightBorder">';
                                str+='<a href="index.php?admin=1&c=goods&a=edit&id='+json.arr[i].id+'">修改</a>&nbsp;&nbsp;';
                                str+='<a href="index.php?admin=1&c=goods&a=delete&id='+json.arr[i].id+'" onclick="return confirm'+"('是否删除？','是','否')"+';">删除</a>&nbsp;&nbsp;预览';
                                str+='</td>';
                                str+='</tr>';
                            }
                            $('.right-table').html(str);
                            $('#page').html('<ul>'+json.page+'</ul>');
                                },
                                error:function(){
                                    alert('失败')
                                }
                            })
                        return false;
                        })
                </script>